home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / misc / ImageFXDevKit.lha / sdev / include / scan / req.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  2.2 KB  |  70 lines

  1. /*
  2.  * Scan 'C' Header File
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Requesters.
  6.  *
  7.  */
  8.  
  9. #ifndef SCAN_REQ_H
  10.  
  11.  
  12. #define FI_DIRLEN    (128)
  13. #define FI_FILELEN   (32)
  14. #define FI_PATLEN    (64)
  15.  
  16. /*
  17.  * FileInfo - used to maintain directory and filename information from
  18.  *            file requester useage to useage.  So that the user is
  19.  *            presented with the same directory and filename as the
  20.  *            last time he used this file requester.  One day might
  21.  *            buffer the directory itself, but I doubt it.
  22.  *
  23.  *            This structure is passed to the NewGetFile() function,
  24.  *            incidentally.
  25.  */
  26.  
  27. struct FileInfo {
  28.    char     Dir[FI_DIRLEN];      /* Directory last used */
  29.    char     File[FI_FILELEN];    /* File last selected */
  30.    char     Pattern[FI_PATLEN];  /* Last pattern used */
  31.    APTR     Cache;               /* Directory cache (not used) */
  32.    struct DateStamp CacheDate;   /* Date of directory cache (not used) */
  33.    BPTR     CacheLock;           /* Lock on cached directory (not used) */
  34.    struct Screen *Screen;        /* Screen on which to open */
  35.    char     Toggle[80];          /* Alternate directory */
  36.    char    *PathName;            /* Selected path (used by ComplexRequest) */
  37.    char    *HailText;            /* Hail text (also used by ComplexRequest) */
  38.    short    LE, TE, W, H;        /* Size (not currently used) */
  39.    long     Reserved[2];         /* Reserved for future expansion */
  40. };
  41.  
  42. struct FontInfo {
  43.    char              Dir[FI_DIRLEN];      /* Directory last used */
  44.    struct TTextAttr  Attr;                /* (Extended) text attributes */
  45.    ULONG             Tags[8];             /* Tags for 2.0 TextAttr */
  46.    long              Reserved[32];        /* For future expansion */
  47. };
  48.  
  49. /*
  50.  * Flags for the NewGetFile() function...
  51.  */
  52.  
  53. #define FI_NOROLL    0x01        /* Do not roll screen up */
  54. #define FI_SAVE      0x02        /* We're saving something */
  55. #define FI_DIRONLY   0x04        /* Select directories only */
  56. #define FI_SCREEN    0x08        /* Force open on fi->Screen */
  57.  
  58. /*
  59.  * ListNode for the PickFromListA() function...
  60.  */
  61. struct ListNode {
  62.    struct MinNode       Node;
  63.    char                 Label[80];
  64.    char                 Command[256];
  65.    int                  ID;
  66. };
  67.  
  68. #define SCAN_REQ_H
  69. #endif
  70.